/*
 * InsertionFailureException.java
 *
 * Project: TECHWATCH - TESTING TECHNOLOGIES
 *
 * Copyright 2008 by ELCA Informatique SA
 * Av. de la Harpe 22-24, 1000 Lausanne 13
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of ELCA Informatique SA. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license
 * agreement you entered into with ELCA.
 */
 
package ch.elca.training.dao.core.exception;

import org.springframework.dao.InvalidDataAccessResourceUsageException;

/**
 * This data access exception will be thrown in business methods, if data could
 * not be inserted.
 *
 * @author Martin Zeltner (MZE)
 */
public class InsertionFailureException extends InvalidDataAccessResourceUsageException {

	private static final long serialVersionUID = 1L;

	/**
	 * Constructor.
	 *
	 * @param msg
	 *            Is the exception message.
	 */
	public InsertionFailureException(String msg) {
		super(msg);
	}

	/**
	 * Constructor.
	 *
	 * @param msg
	 *            Is the exception message.
	 * @param ex
	 *            Is the cause for this exception.
	 */
	public InsertionFailureException(String msg, Throwable ex) {
		super(msg, ex);
	}
}
